home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Processes
/
Process.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
717b
|
39 lines
// Process.h
#ifndef Process_h
#define Process_h
#ifndef Integers_h
#include "Integers.h"
#endif
class Process
{
private:
ProcessSerialNumber psn;
public:
Process( ProcessSerialNumber thePSN )
: psn( thePSN )
{}
enum ApplicationProcess{ application };
enum FrontProcess{ front };
Process( ApplicationProcess );
Process( FrontProcess );
static const Process& Application();
static Process Front() { return Process( front ); }
bool operator==( const Process& ) const;
bool operator!=( const Process& r ) const { return !(*this == r); }
void Wake() const;
void MoveToFront() const;
const ProcessSerialNumber& Number() const { return psn; }
};
#endif